<?php
/**
 * 提交活动信息
 * User: miao1995
 * Date: 2019/5/18
 * Time: 22:50
 */

global $_W, $_GPC;

$activity = [
    "title" => $_GPC["title"],
    "img" => $_GPC["img"],
    "start" => $_GPC["time"]["start"],
    "end" => $_GPC["time"]["end"],
    "apply_start" => $_GPC["apply_time"]["start"],
    "apply_end" => $_GPC["apply_time"]["end"],
    "state"=>$_GPC["state"]
];

$rest = pdo_insert($this->table_activity_list,$activity);

if(!empty($rest)){
    message("活动保存成功",url("site/entry/huodong",["m"=>$this->module_name]),"success");
}